package cn.ft.eurekaserviceinvoker;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@FeignClient("eureka-service-provider") //声明调用的服务名称
public interface PersonClient {
    @RequestMapping("/hello")
    String hello();

    @RequestMapping(value = "/person/{personId}")
    Map<String, Object> findPerson(@PathVariable Integer personId);
}